package TP6;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: pc
 * Date: 18/11/11
 * Time: 16:48
 * To change this template use File | Settings | File Templates.
 */
public class Entries<K, V> implements Map.Entry{

    K key;
    V value;

    public Entries(K k, V v) {
        key = k;
        value = v;
    }

    public Object setValue(Object v){
        Object o = value;
        value = (V) v;
        return o;
    };

    public K getKey(){
        return key;
    };

    public V getValue(){
        return value;
    };

}
